package com.buke66.taoduo.goods.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.buke66.taoduo.common.utils.PageUtils;
import com.buke66.taoduo.common.utils.Query;

import com.buke66.taoduo.goods.dao.GoodsAttrGroupDao;
import com.buke66.taoduo.goods.entity.GoodsAttrGroupEntity;
import com.buke66.taoduo.goods.service.GoodsAttrGroupService;


@Service("goodsAttrGroupService")
public class GoodsAttrGroupServiceImpl extends ServiceImpl<GoodsAttrGroupDao, GoodsAttrGroupEntity> implements GoodsAttrGroupService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GoodsAttrGroupEntity> page = this.page(
                new Query<GoodsAttrGroupEntity>().getPage(params),
                new QueryWrapper<GoodsAttrGroupEntity>()
        );

        return new PageUtils(page);
    }

}